package com.example.navigationstudy;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class MainViewModel extends ViewModel {

    MutableLiveData<String> tip  = new MutableLiveData<>();
    // TODO: Implement the ViewModel

    public void setTip(String tip) {
        this.tip.setValue(tip);
    }

    public MutableLiveData<String> getTip() {
        return tip;
    }
}